import turtle
# 画笔粗细
turtle.pensize(4)
# 画笔颜色红色
turtle.pencolor('red')
# 海龟前进指定的距离
turtle.forward(100)
# 右转 90 个单位
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.mainloop()
